﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;


namespace Plain.Search {
    public class InCollectionCriteria : Criteria,IEnumerable{
        private IEnumerable collection = new ArrayList();
        
        private PropertyIdentifier id;
        public PropertyIdentifier Id {
            get { return id; }
            set { id = value; }
        }
        public InCollectionCriteria(PropertyIdentifier id, IEnumerable col) {
            collection = col;
            this.id = id;
        }
        
    

        public IEnumerator  GetEnumerator(){
            return collection.GetEnumerator();
        }
    }
}

